XIQS Complexfilter

From IQsimWiki

Jump to: navigation, search

Complex Filter Mechanism

For some of the "getXIQS … List", a filter mechanism can be applied to reduce the list of results or reorganize the output order (sort parameter).
This parameter object can be placed anywhere in the command and is always optional.
It takes the form of an XML structure with the following fields:



The filter criteria's semantic use JSON grammar. Some input object fields need to be defined for complexfilter to work :


Example of a single criteria definition :

{"field":"status","datatype":"0","datatype2":"0","operators":["="],"data":["720896"]}


Example of a filter creation :

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<command name="createXIQSUserFilter">
<param type="string">My Filter</param>
<!-- FILTER ON SIMCARD OBJECTS (type=10) -->
<param type="integer">10</param>
</command>


Example of a filter update :

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<command name="updateXIQSUserFilterInfo">
 <!-- FILTER OBJECT ID TO APPLY -->
 <param type="long">49</param>
 <!-- FILTER ON STATUS -->
 <param type="string">{"field":"status","data":["851968"],"operators":["="],"datatype":0}</param>
 <!-- FILTER ON ICCID 1 -->
 <param type="string">{"field":"iccid","data":["1234567890"],"operators":["!"],"datatype":0}</param>
 <!-- FILTER ON ICCID 2 -->
 <param type="string">{"field":"iccid","data":["0987654321"],"operators":["!"],"datatype":0}</param>
</command>
Personal tools
Namespaces
Variants
Views
Actions
Navigation
XIQS XML Protocol
XIQS Framework Libraries
XIQS Command List